package com.idc.quartz.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Component;

@Component
public class SampleJob implements Job {
    @Override
    public void execute(JobExecutionContext job) throws JobExecutionException {

        String deviceId = job.getJobDetail().getJobDataMap().getString("deviceId");
        System.out.println("hello 执行得方法   调用发布接口---"+deviceId);
    }
}
